package org.huang.sample10.demo2;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @描述：
 * @作者: Mr.huang
 * @创建时间: 2017/8/21 19:06
 * @版本: 1.0
 */
@Service
public class PersonService {


    public static final String SQL_LIST_BY = "listBy";

    @Autowired
    private SqlSession sqlSession;


    public List<Person> list() {
       return this.sqlSession.selectList(SQL_LIST_BY);
    }
}
